config = require './../config.coffee'
authorize=require("./../lib/sdk/authorize.js");
md5 = require 'MD5'
fs = require ("fs")
Sina=require("./../lib/sdk/sina.js")
sina=new Sina(config.sdks.sina)
uids =   [
  3819185670,
  5505561387,
  2420756340,
  3988939532,
  2173445405,
  3099801503,
  2652796923,
  3563727140,
  5262196328,
  2802347203,
  3841075801,
  1298759662,
  3925280150,
  3817405584,
  2718761583,
  1768985684,
  2397921372,
  2390703027,
  5510240320,
  3460007574,
  3636334872,
  1918282447,
  1094106762,
  5377347013,
  5181137756,
  5101247066,
  1781480665,
  1897060754,
  2892918963,
  2864886120,
  1908649912,
  5480819994,
  2825990552,
  5223379178,
  1758611855,
  3932628029,
  5486376972,
  5141522389,
  5407175012,
  1804262960,
  2808730305,
  3147366825,
  5113364202,
  5510220407,
  2076219167,
  2321981643,
  5450921326,
  2598714122,
  1763128102,
  5292411672,
  5315603339,
  2600208422,
  5491859002,
  2758050313,
  3758837400,
  5283619185,
  3586877515,
  2446534880,
  1947972780,
  3166570203,
  5199924723,
  2277384967,
  1578206682,
  2709169783,
  3931638991,
  2687292344,
  5413026453,
  5103449104,
  3935755780,
  3647322913,
  2904237380,
  2274912344,
  3178563415,
  2835426287,
  5237375154,
  1797070251,
  5459405583,
  2982318891,
  5087957035,
  2812554815,
  3558124875,
  3148352002,
  3286064312,
  5264815001,
  2855371682,
  5032508987,
  2190892037,
  2273135481,
  5494311379,
  5094136112,
  5171807088,
  5496147445,
  3922227259,
  3169532904,
  5464962452,
  1803294485,
  3765158612,
  5109054675,
  3851764273,
  3742855150,
  5498200140,
  1735736467,
  2919442965,
  3781649483,
  5364826380,
  3307935501,
  2675529413,
  5260581796,
  2526791980,
  2005743957,
  1975877025,
  3034332030,
  3910481058,
  5037733705,
  2822100193,
  1768839872,
  3124019994,
  3969491874,
  5319656555,
  1785191574,
  5096690609,
  1910852967,
  5018989763,
  5342267239,
  2390692545,
  2234305950,
  5261705919,
  2199845011,
  2822960517,
  3937087582,
  1318201502,
  2122002332,
  2164073787,
  5231526754,
  2303973871,
  1901153203,
  2689095991,
  5052841015,
  3996696550,
  5476041353,
  1848161591,
  5506803022,
  5203909907,
  3743815650,
  1165797292,
  5185195758,
  5107879501,
  5266929055,
  2456234224,
  3816607537,
  2821971064,
  1962780681,
  5350038201,
  3034345441,
  2237930754,
  1581635607,
  1158210480,
  3565144583,
  3170827545,
  3010842045,
  3935089120,
  2768878597,
  5507738890,
  1941433344,
  2838426414,
  3073175031,
  5501480055,
  2795676164,
  3788533143,
  2276556770,
  3223800535,
  2903252503,
  3278362931,
  3828590210,
  1904292145,
  2061721494,
  2808126314,
  5239603946,
  1740447352,
  2396367871,
  3026751203,
  3312981701,
  2731384673,
  5374530884,
  5026948817,
  3080366197,
  5383148670,
  3201522611,
  3699160952,
  3151973194,
  3565263990,
  1016449027,
  2074343375,
  1752483252,
  1802341163,
  5390549410,
  2107061267,
  3541740413,
  1735125964,
  3238937491,
  2657836553,
  3845975130,
  5188075461,
  2679190712,
  1611348913,
  3281884921,
  3198128654,
  2046999775,
  5503035495,
  3659271694,
  2991224503,
  5507418836,
  1806023777,
  2704313271,
  3562569872,
  3732825053,
  1976989125,
  1745336492,
  2987647267,
  5506935452,
  3630749567,
  1380226102,
  2865712114,
  5265232700,
  5398959035,
  2827761705,
  5113357678,
  3788474821,
  2176566751,
  3317900014,
  3137928575,
  1939228961,
  2297421602,
  2341225533,
  2874588982,
  2371289154,
  5449861673,
  2417104692,
  1824740765,
  1645362404,
  2447564790,
  2643480912,
  5245357233,
  5458424962,
  1894221410,
  2158996420,
  1879296123,
  2063515071,
  2832157351,
  2134231257,
  3414966454,
  3199104260,
  2115300014,
  1640775764,
  1827922230,
  1740310630,
  3866489700,
  3292882535,
  3980045787,
  1731810942,
  1772092860,
  2697850373,
  2623093431,
  3655858170,
  5505630955,
  5483044832,
  5384120415,
  1961751857,
  1747982230,
  1039055437,
  1884660491,
  3249731472,
  1933788660,
  5505127802,
  5090458303,
  1625659492,
  5180837583,
  1687608181,
  3316245437,
  2987567107,
  1768086947,
  1783462745,
  2134304724,
  5336217807,
  3083425911,
  5506630937,
  5506896654,
  5507467410,
  5251413674,
  2162072682,
  3202754073,
  5303985635,
  3661330725,
  3925432986,
  2717201485,
  2824830867,
  3424320410,
  3566246851,
  5289378777,
  1793264772,
  2172676254,
  3501631962,
  5306813728,
  5498879362,
  5499179044,
  1061598734,
  5161220675,
  5361990247,
  5458220478,
  1748903520,
  2917607855,
  3814241868,
  5385926738,
  2685514240,
  3284730745,
  1677423847,
  5296038963,
  2390739891,
  2266568652,
  1914692700,
  2112417927,
  5408161419,
  2887596194,
  5446263618,
  3197153692,
  5503614705,
  1802242243,
  5224355742,
  2650241743,
  5419977374,
  3432146552,
  5490265427,
  5044036108,
  2872572287,
  2865015380,
  3607216383,
  3764945840,
  1599064993,
  2375264017,
  5221841397,
  1695096800,
  5246893433,
  3224698905,
  5261704670,
  5224151377,
  1847866620,
  1824007040,
  3305714341,
  5187749017,
  5459512488,
  2704685531,
  2698907232,
  5023541000,
  2860898904,
  3180446180,
  1812716552,
  5427003633,
  3834520879,
  2067464374,
  5480026666,
  2167305494,
  2685058183,
  1991304087,
  3886668959,
  5386129983,
  2856368392,
  5126299743,
  1870802297,
  1976908961,
  5220791400,
  2812502145,
  1704040027,
  5459265438,
  2842668413,
  2575125247,
  2644278591,
  2871712633,
  3936742301,
  5237323582,
  2763554585,
  1782506021,
  2012743630,
  2470706561,
  2689249370,
  5506604802,
  5506866520,
  1283749814,
  1958438900,
  2491388404,
  1793980183,
  2080071163,
  3636690180,
  1804231227,
  3199024093,
  2790483385,
  5338410203,
  5251430160,
  1100661442,
  2732327675,
  5041860353,
  3148554354,
  2671183882,
  2260898570,
  2060490741,
  5506724814,
  3897606233,
  1838992281,
  3239171240,
  5262526070,
  1001746712,
  5497887074,
  5508202342,
  1906062197,
  3778331053,
  5506603376,
  2401123754,
  2282347437,
  2614104082,
  5508197446,
  1793172353,
  2869633400,
  2589618641,
  1792917972,
  2352218834,
  2335526264,
  5306886386,
  5266102787,
  5498712605,
  3778091867,
  2281953487,
  1677345000,
  2182526572,
  1952729831,
  5051014782,
  2897917097,
  1826016914,
  1736829917,
  3611939813,
  3192735010,
  2382404754,
  3281869235,
  1760296282,
  5458196905,
  3547364990,
  5203320962,
  3261397993,
  2336597481,
  2037253693,
  2619399465,
  1789999357,
  1713103911,
  2577808175,
  2671599391,
  1801740751,
  2172663702,
  2638140521,
  2740959113,
  2983719434,
  5283675508,
  5144000400,
  2489786395,
  3705059180,
  1988657947,
  3157329757,
  2271234312,
  3214255347,
  5496917301,
  5121041884,
  2424784317,
  3197326070,
  2670052413,
  5396059454,
  5499143705,
  2299847351,
  1648152963,
  5287239145,
  1339322471,
  2615352277,
  1235713913,
  5200711942,
  1282729781,
  3693854855,
  1957525437,
  2930340923,
  2658580850,
  3742407390,
  1751981311,
  2515258245,
  1830675193,
  5384523691,
  3168276410,
  3561027377,
  3995669318,
  3310776995,
  5085370708,
  3172749775,
  1502920392,
  1676733335,
  3198984880,
  3210158625
]
queuedo = require("queuedo")

queuedo uids,(id,next,context)->
  sina.friendships.destroy
    id:id
    uid:id
    access_token:"2.00fsus3D0TxWci67da164467XENWpD"
    rip:"122.224.209.210"
  ,(error,message)->
      console.log message

  setTimeout ()->
    next.call(context)
  ,1000